package com.ruoyi.common.utils;


import com.ruoyi.common.constant.SysConstant;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author: seeTools
 * @Date: 2023/9/24  8:33
 * @Version 1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageQuery<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 默认页数
     */
    private int pageNum = SysConstant.DEFAULT_PAGE;

    /**
     * 默认个数
     */
    private int pageSize = SysConstant.DEFAULT_PAGE_SIZE;

    /**
     * 默认排序字段
     */
    private String sortName = SysConstant.DEFAULT_SORT_NAME;

    /**
     * 默认排序规则
     */
    private String sortOrder = SysConstant.DEFAULT_SORT_ORDER;

    /**
     * 数据
     */
    private T params;
}
